import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations.js'
import state from './state.js'

Vue.use(Vuex)

export default new Vuex.Store({
    /* state: {
        //city: localStorage.city || '上海'

    }, */
    state,
    /* actions: {
        changeCity(ctx, city) {
            //console.log(city);
            ctx.commit('changeCity', city)
        }
    }, */
    mutations
})